import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { Exclude } from 'class-transformer';
import { ApiProperty } from '@nestjs/swagger';
@Entity()
export class User {
  @ApiProperty({ description: '用户ID' })
  @PrimaryGeneratedColumn()
  id: number;
  @ApiProperty({ description: '用户名' })
  @Column()
  username: string;
  @Exclude()
  @ApiProperty({ description: '密码' })
  @Column()
  password: string;
}
